﻿@model Nullable<DateTime>
           
@Html.TextBox("", (Model ?? DateTime.Now).ToShortDateString(), new { @class = "datepicker text-box single-line" })

<script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.min.js")" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $(".datepicker").datepicker({dateFormat:'dd-M-y'});
    });
</script>